home *** CD-ROM | disk | FTP | other *** search
- -- card: 19780 from stack: in.2r
- -- bmap block id: 0
- -- flags: 0000
- -- background id: 2202
- -- name: noFieldDelete
- ----- HyperTalk script -----
- on deleteField
- beep 3
- answer "You can't do that"
- domenu copy field
- domenu paste field
- end deleteField
-
-
- -- part 3 (field)
- -- low flags: 00
- -- high flags: 0004
- -- rect: left=316 top=214 right=278 bottom=455
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Can't delete me!
- ----- HyperTalk script -----
- on newfield
- put the short name of the target into card field the short name of the target
- end newfield
-
-
- -- part contents for background part 10
- ----- text -----
- 10
-
- -- part contents for background part 3
- ----- text -----
- noFieldDelete
-
- -- part contents for background part 2
- ----- text -----
- --NOTE: Handlers are included in the Function section for convenience.
- --
- --If you ever create a stack where you want the uninitiated user prevented from
- --accidentally deleting an important field, put the following handler in the background
- --or stack script.
- --
- --It is installed in this card. Try to delete the field below...
- --
- --by Steve Drazga, AnalytX
- --
- on deleteField
- beep 3
- answer "You can't do that"
- domenu copy field
- domenu paste field
- end deleteField
-
- -- part contents for card part 3
- ----- text -----
- Can't delete me!